<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./template/template.xhtml">

            <ui:define name="content">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td colspan="2">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td width="39" align="center" valign="middle"><img src="images/cam_39.gif" width="14" height="14" /></td>
                                    <td width="371" height="30" align="left" valign="middle">Sell your home or rent out your apartment</td>
                                </tr>
                                <tr>
                                    <td align="center" valign="middle">&nbsp;</td>
                                    <td><table cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td>Selling with mysweethome.com is easy but you need to register an account with us first so we can track your listing for you!</td>
                                            </tr>
                                        </table></td>
                                </tr>
                                <tr>
                                    <td align="center" valign="middle"><img src="images/cam_39.gif" width="14" height="14" /></td>
                                    <td height="30" align="left" valign="middle">Keep track of real estate news</td>
                                </tr>
                                <tr>
                                    <td align="center" valign="middle">&nbsp;</td>
                                    <td>Our team of real estate journalists keep you up to date on the latest regarding the real estate market.</td>
                                </tr>
                                <tr>
                                    <td colspan="2">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2">&nbsp; &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2">&nbsp;</td>
                                </tr>
                            </table></td>
                        <td width="10"></td>
                        <td valign="top" width="320"><table width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td colspan="3"><img src="images/en/Login2.gif" width="320" height="30"/></td>
                                </tr>
                                <tr>
                                    <td><table bgcolor="#e7f3fe" width="100%" cellspacing="0" cellpadding="0" class="blue_border1px">
                                            <tr>
                                                <td>
                                                    <f:view>
                                                        <h:form id="login">
                                                            <table width="100%" cellspacing="5">

                                                                <tr>
                                                                    <td></td>
                                                                    <td height="30">&nbsp;</td>
                                                                </tr>

                                                                <tr>
                                                                    <td nowrap="nowrap">&nbsp;Email
                                                                        :</td>
                                                                    <td><h:inputText id="email" 
                                                                                     value="#{userManager.email}"/></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>&nbsp;Password
                                                                        :</td>
                                                                    <td><h:inputSecret id="password"
                                                                                       value="#{userManager.password}"/>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2"><div align="right"><h:commandButton id="submit" 
                                                                                                                        type="submit"
                                                                                                                        value="Login"
                                                                                                                        action="#{userManager.login()}"/>&nbsp;&nbsp;
                                                                            <h:commandLink id="create"
                                                                                           value="Create New Account"
                                                                                           action="Register"/></div></td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">        
                                                                        <h:panelGroup id="messagePanel" layout="block">
                                                                            <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                                                                        </h:panelGroup>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </h:form>
                                                    </f:view>
                                                </td>
                                            </tr>
                                        </table></td>
                                </tr>
                            </table></td>
                    </tr>
                </table>
            </ui:define>
        </ui:composition></body>
</html>
